// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0

TestCase := Rectangle {
    property <int> xx: animation-tick() / 1ms;
}

/*

```rust
let instance = TestCase::new().unwrap();
let begin = instance.get_xx();
assert_eq!(begin, instance.get_xx());
slint_testing::mock_elapsed_time(600);
assert_eq!(begin + 600, instance.get_xx());
```


```cpp
auto handle = TestCase::create();
const TestCase &instance = *handle;

auto begin = instance.get_xx();
assert_eq(begin, instance.get_xx());
slint_testing::mock_elapsed_time(600);
assert_eq(begin + 600, instance.get_xx());
```

```js
var instance = new slint.TestCase({});

let begin = instance.xx;
assert.equal(begin, instance.xx);
slintlib.private_api.mock_elapsed_time(600);
assert.equal(begin + 600, instance.xx);
```
*/
